#include "FRACTION.h"
namespace CCPBook{
	FRACTION::FRACTION() : number(0), denom(1){

	}
	FRACTION::FRACTION(int n) : number(n), denom(1){

	}
	FRACTION::FRACTION(int n, int d) : number(n), denom(d){
		if (d == 0){
			std::cerr << ":error : denominatoe is 0" << std::endl;
		}
	}
	void FRACTION::print(){
		std::cout << number << '/' << denom << std::endl;
	}
} //end namespace CCPBook